html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.web03 {
    width: 100%;
    height: 100%;
    background-image: url("https://yuan-1252477692.cos.ap-guangzhou.myqcloud.com/blog/src/chatroom/bg.jpg");
    background-size: 100% 100%;
}
.home-btn{
    position: absolute;
    left: 10px;
    top: 10px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.home-btn:hover{
    color: #ccc;
}
.login-view {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    background-color: #fff;
    box-shadow: #999 0 2px 10px;
    padding: 20px;
    padding-top: 0;
    box-sizing: border-box;
}

.login-view h3 {
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: 400;
    /*line-height: 50px;*/
}

.form-item {
    display: flex;
    margin-bottom: 15px;
}

.form-item > div:nth-child(1) {
    width: 50px;
    display: inline-block;
    text-align: justify;
    text-align-last: justify;
    padding-right: 10px;
}

.form-item > div:nth-child(2) {
    flex: 1;
}

input {
    border: 1px solid #ccc;
    padding: 7px 0px;
    border-radius: 3px;
    padding-left: 5px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s
}

input:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6)
}

label {
    margin-right: 10px;
    color: #b1b1b1;
    font-size: 14px;
}

.circle {
    display: inline-block;
    vertical-align: middle;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

input[type='radio']:checked + .circle {
    padding: 2px;
    background: #66afe9;
    box-sizing: border-box;
    border-color: #66afe9;
    background-clip: content-box;
}

.form-item input {
    width: 200px;
}

.avatar-login {
    width: 60px;
    height: 60px;
    border: 3px solid #ffffff;
    cursor: pointer;
}

.avatar-login-on {
    border-color: #66afe9;
}

.login-btn-view {
    text-align: center;
}

.login-btn {
    position: relative;
    display: inline-block;
    width: 200px;
    box-sizing: border-box;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    line-height: 2.55555556;
    border-radius: 5px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    overflow: hidden;
    background-color: #66afe9;
    border: none;
    cursor: pointer;
    margin-top: 5px;
}

.register-box {
    display: none;
}

.login-btn-c {
    width: 50px;
    background-color: #CCCCCC;
    margin-right: -25px;
}

/*聊天窗口*/
#windowBox {
    max-width: 1000px;
    min-width: 500px;
    height: 100%;
    background-color: #eeeeee;
    margin: auto;
    display: none;
}

.user-list {
    width: 240px;
    height: 100%;
    background: #2E3238;
    position: relative;
    left: 0;
    transition: all 0.3s;
    overflow-y: auto;
}

.user-list-header {
    display: flex;
    margin-bottom: 5px;
}

.user-list-header-avatar {
    position: relative;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-list-header-avatar > .user-list-header-avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 5px;
}
.user-list-header-avatar-sex{
    width: 15px;
    height: 15px;
}

.user-list-header-txt {
    flex: 1;
    color: white;
    padding: 10px 0;
    overflow: hidden;
}

.user-list-header-txt > p {
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.user-list-header-username {
    font-size: 12px;
}

.user-list-header-nickname {
    font-size: 16px;
}

.user-list-title {
    color: #ffffff;
    padding: 10px;
    border-top: 1px solid #24272c;
    border-bottom: 1px solid #24272c;
    display: flex;
    align-items: center;
}

.user-list-title > img {
    width: 25px;
    height: 25px;
    margin-right: 5px;
}
.user-list-item{
    position: relative;
    margin: 0;
}
.user-list-item-header-avatar > img {
    width: 35px;
    height: 35px;
}

.user-list-item-header-nickname {
    font-size: 14px;
    margin-top: 5px !important;
}
.data-empty{
    color: #ccc;
    font-size: 12px;
    text-align: center;
}
/*
.user-list-items-all > .user-list-item ,.user-list-items-relevant>.user-list-item{
}*/

.user-list-item:hover {
    background: #414751;
    cursor: pointer;
}

.user-list-item.active-u-l {
    background: #414751;
}
.user-list-item .status-tag{
    position: absolute;
    right: 2px;
    top: 2px;
    padding: 1px 6px;
    color: #636360;
    font-size: 10px;
    border-radius: 3px;
    background: #cccccc;
}
.user-list-item .status-tag.inline-tag{
    color: #ffffff;
    background: #00a8c6;
}
.message-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.message-box-title {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #CCCCCC;
}

.message-box-content {
    flex: 1;
    padding: 0 10px;
    overflow-y: auto;
}

.message-box-system {
    height: 160px;
    padding: 0 5px;
    border-top: 1px solid #CCCCCC;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.message-box-system-menu {
    padding: 5px;
    position: relative;
}

.message-box-system-menu .message-box-system-menu-icon {
    width: 25px;
    margin-left: 5px;
    cursor: pointer;
}

.message-box-system-message {
    flex: 1;
    display: flex;
}

.message-box-system-message-c {
    outline: none;
    resize: none;
    border: 0;
    background: #EEEEEE;
    font-size: 16px;
    flex: 1;
}

.message-box-system-message-send {
    text-align: right;
    padding: 5px 5px 12px 0;
}

.message-box-system-message-send > span {
    font-size: 12px;
    color: #b1b1b1;
}

.message-box-system-message-send > .btn-send {
    display: inline-block;
    border: 1px solid #c1c1c1;
    text-decoration: none;
    background-color: #fff;
    color: #222;
    border-radius: 4px;
    padding: 3px 30px;
    font-size: 14px;
    cursor: pointer;
}
.message-time{
    text-align: center;
    color: #1d1c1c;
    font-size: 12px ;
}
.enjoy-view-position{
    position: absolute;
    left: 10px;
    top: 0;
    transform: translateY(-200px);
    padding-bottom: 20px;
}
.enjoy-view {
    max-width: 400px;
    height: 200px;
    background: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.176);
    padding: 5px;
    box-sizing: border-box;
    overflow-y: auto;
    display: none;
}

.enjoy-view > table {
    border-collapse: collapse;
}

.enjoy-view > table tr td {
    border: 1px solid #e3e3e3;
    cursor: pointer;
}
.message-box-system-menu-enjoy,.message-box-system-menu-img{
    display: inline-block;
    position: relative;
    cursor: pointer;
}
.message-box-system-menu-img{
    overflow: hidden;
    top: 4px;
}
.message-box-system-menu-img>input{
    width: 25px;
    height: 25px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.message-item-u{
    display: flex;
    margin-bottom: 20px;
}
.message-item-avatar{
    width: 45px;
    height: 45px;
    border-radius: 5px;
}
.message-item-content{
    flex: 1;
    padding: 0 10px;
}
.message-item-content-nickname{
    font-size: 14px;
    margin: 0;
    color: #a4a4a4;
    margin-bottom: 4px;
}
.message-item-content-bubble{
    display: inline-block;
    padding: 10px;
    background-color: #CDCBCD;
    border-radius: 5px;
    position: relative;
    text-align: left;
    word-wrap:break-word;
    word-break:break-all;
}
.message-img{
    max-width: 380px;
}
.message-item.right .message-item-content-bubble:before{
    position: absolute;
    top: 14px;
    right: -10px;
    border: 6px solid transparent;
    content: ' ';
    border-left-color: #CDCBCD;
    border-left-width: 4px;
}
.message-item.left .message-item-content-bubble:before{
    position: absolute;
    top: 14px;
    left: -10px;
    border: 6px solid transparent;
    content: ' ';
    border-right-color: #CDCBCD;
    border-right-width: 4px;
}
.message-item.left .message-item-content{
    text-align: left;
}
.message-item.right .message-item-content{
    text-align: right;
}
.message-system,.load-message{
    text-align: center;
    margin: 10px auto;
    max-width: 50%;
    color: #b2b2b2;
    font-size: 12px;
}
.load-message{
    color: #346dc6;
    cursor: pointer;
}
.load-message>.icon-time{
    font-size: 14px;
    margin-right: 2px;
}
.user-list-popup{
    background: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    position: fixed;
    left: -200%;
    z-index: 998;
}
/*.user-list-popup-menu{
    position: absolute;
    left: 10px;
    top: 10px;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
}*/
.show-user-list-popup-menu{
    position: fixed;
    left: 15px;
    top: 15px;
    color: #00aaaa;
    cursor: pointer;
    font-size: 18px;
    display: none;
}
@media screen and (max-width: 500px){
    #windowBox{
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }
    .home-btn{
        display:none;
    }
    .message-box-system{
        height: 120px;
    }
    .message-box-system-message-send>span{
        display: none;
    }
    .show-user-list-popup-menu{
        display: inline-block;
    }
    .user-list{
        width: 160px;
        position: fixed;
        left: -200%;
        top: 0;
        z-index: 999;
    }
    .web03.mobile .user-list{
        left: 0!important;
    }
    .web03.mobile .user-list-popup{
        left: 0!important;
    }
    .message-img{
        max-width: 180px;
    }
    .login-view{
        width: 90%;
    }
    .user-list-item:hover {
        background: #2E3238;
    }
}



.loading{
    color: #ccc;
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading>.icon-loading{
    display: inline-block;
    font-size: 20px;
    margin-right: 5px;
    transition: 0.5s;
    animation: rotate 1s linear infinite;
}
@keyframes rotate {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}
.user-list-tab{
    padding: 10px 5px;
    box-sizing: border-box;
    text-align: center;
}
.user-list-tab>div{
    width: 60px;
    display: inline-block;
    padding: 6px 2px;
    background: #2a2a2a;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid #0a001f;
    box-sizing: border-box;
}
.user-list-tab-on{
    background: #ccc!important;
    color: #0a001f!important;
    border: 1px solid #2a2a2a!important;
}









